package com.aaa.dao;

import com.aaa.pojo.GrowthRate;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;
import org.springframework.stereotype.Repository;

@Mapper
@Repository
public interface GrowthRateMapper {
    @Select("select * from growth_rate WHERE g_id=#{g_id}")
    GrowthRate selectById(Integer g_id);
    @Insert("INSERT INTO growth_rate(g_id,g_day,g_month,g_year) VALUES (#{g_id},#{g_day},#{g_month},#{g_year})")
    boolean insertGrowthRate(GrowthRate growthRate);
}
